using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace MiddlewareServer
{
    public enum eReturnErrorCode
    {
        Success = 0,
        Timeout,
        Client_not_available,
        Server_not_available,
        Incorect_data
    }

    public interface IServer_rpt
    {
        void connect(uint a_uiClientID);
        void ready(uint a_uiClientID, DataTable a_dtShipsTable);
        void shoot(uint a_uiClientID, uint a_uiXPos, uint a_uiYPos);
        void disconnect(uint a_uiClientID);
    }

    public interface IServer_cmd
    {
        void readyResult(uint a_uiClientID, eReturnErrorCode a_eRetCode);
        void shootResult(uint a_uiClientID, uint a_uiXPos, uint a_uiYPos, uint a_uiShooted);
        void disconnectResult(eReturnErrorCode a_eRetCode);
        void connectResult(eReturnErrorCode a_eRetCode);
    }
}
